/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package all_pet_iv.database;

import all_pet_iv.gui.FramePrincipal;
import java.sql.*;

/**
 *
 * @author Daniel
 */
public class Excluir {
    public static void produto(int codigo) throws SQLException{
        String sql = "DELETE FROM tb_estoque WHERE codigo=?";
        PreparedStatement stmt = FramePrincipal.getInstance().fachada.getConexao().prepareStatement(sql);
        stmt.setInt(1, codigo);
        stmt.execute();
        stmt.close();
    }

}
